@extends('layouts.information')

@section('content')
<div class="row">
    <div class="col-sm-12 us_sheet_ves">
        <div class="us_sheet">
            <div class="us_sheet-child">
                <table>
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>选择</th>
                        <th>编号</th>
                        <th>计量标准</th>
                        <th>固资编号</th>
                        <th>资产名称</th>
                        <th>供货单位</th>
                        <th>出厂编号</th>
                        <th>规格型号</th>
                        <th>测量范围</th>
                        <th>精度等级</th>
                        <th>出厂日期</th>
                        <th>原值（万元）</th>
                        <th>入库时间</th>
                        <th>生产厂家</th>
                        <th>资产类别</th>
                        <th>资产管理员</th>
                        <th>领用人</th>
                        <th>领用时间</th>
                        <th>资产状态</th>
                        <th>领用状态</th>
                        <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($models as $model)
                    <tr>
                        <td>0</td>
                        <td><input type="checkbox" value="{{ $model->id }}>" name="ids[]"></td>
                        <td style="text-align: inherit;"></td>
                        <td>{{ $model->unify_number }}</td>
                        <td>{{ $model->name }}</td>
                        <td><?= $instrument['fixed_number'] ?></td>
                        <td><?= $instrument['ins_name'] ?></td>
                        <td><?= $instrument['ins_brand'] ?></td>
                        <td><?= $instrument['factory_number'] ?></td>
                        <td><?= $instrument['norms'] ?></td>
                        <td><?= $instrument['ins_precision'] ?></td>
                        <td><?= $instrument['ins_grade'] ?></td>
                        <td><?= $instrument['factory_at'] ?></td>
                        <td><?= $instrument['cost'] ?></td>
                        <td><?= $instrument['buy_at'] ?></td>
                        <td><?= $instrument['manufactures'] ?></td>
                        <td><?= $instrument['ins_class'] ?></td>
                        <td><?= $instrument['manage_person'] ?></td>
                        <td><?= $instrument['person'] ?></td>
                        <td><?= $instrument['used_at'] ?></td>
                        <td><?= $instrument['ins_status'] ?></td>
                        <td><?= $instrument['status'] ?></td>
                        <td>
                            <ul>
                                <li>
                                    <a href="{{ route('ppe.ppe.show', [ 'id'=> $user->id ]) }}">查看</a>
                                </li>
                                <li>
                                    <a href="{{ route('ppe.ppe.edit', [ 'id'=> $user->id ]) }}">编辑</a>
                                </li>
                            </ul>
                        </td>
                    </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
        </div>
        <nav class="pull-right">
            {{ $models->links() }}
        </nav>
    </div>
</div>

<ul>
    <li>
        <a href="{{ route('ppe.ppe.create') }}">创建</a>
    </li>
</ul>
@endsection
